package com.test.demo.service.Imp;
import com.test.demo.dao.LoanMapper;
import com.test.demo.model.Loan;
import com.test.demo.service.LoanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * 作者：孙志颖
 */
@Service
public class LoanServiceImp implements LoanService {
    @Autowired
    private LoanMapper loanMapper;


    @Override
    public List<Loan> getLId() {
        System.out.println("执行SQL语句");
        return loanMapper.getLId();
    }
//获取全部信息
    @Override
    public List<Loan> getAllz() {
        return loanMapper.getAllz();
    }

    @Override
    public int insertLoan(Loan loanmodel) {
        return loanMapper.insertLoan(loanmodel);
    }

    @Override
    public int delLoan(Integer lid) {
        return loanMapper.delLoan(lid);
    }

    @Override
    public int updateLoan(Loan loanmodel) {
        return loanMapper.updateLoan(loanmodel);
    }

    @Override
    public Loan selectByPrimaryKey(Integer lid) {
        return loanMapper.selectByPrimaryKey(lid);
    }
}